package com.atguigu.yygh.hosp.client;

import com.atguigu.yygh.model.hosp.HospitalSet;
import com.atguigu.yygh.vo.hosp.ScheduleOrderVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ClassName HospitalFeignClient
 * @Description 此类描述:
 * @Author dangchen
 * @DateTime 2022-10-20 11:28
 * @Version 1.0
 */
@FeignClient("service-hosp")
public interface HospitalFeignClient {
    //根据医院编号查询医院设置
    @GetMapping("/admin/hosp/hospitalSet/getHospitalSetByHoscode/{hoscode}")
    HospitalSet getHospitalSet(@PathVariable String hoscode);

    //根据排班 id 获取预约下单数据
    @GetMapping("/api/hosp/hospital/inner/getScheduleOrderVo/{scheduleId}")
    ScheduleOrderVo getScheduleOrderVo(@PathVariable String scheduleId);
}
